<template>
  <el-container>
    <el-header>
      <h1 v-if="titleName">{{ titleName }}</h1>
      <tool-bar v-if="tool"></tool-bar>
    </el-header>
    <el-main>
      <slot name="main"></slot>
    </el-main>
  </el-container>
</template>

<script>
import ToolBar from "./ToolBar.vue";
export default {
  name: "ModelWrap",
  props: {
    titleName: String,
    tool: Boolean,
  },
  components: {
    ToolBar,
  },
};
</script>

<style></style>
